package com.songshuai.webapi.baseapi.util;

import com.songshuai.webapi.baseapi.common.enumerations.SubjectType;

import java.util.HashMap;
import java.util.Map;

public class DicMap {
    /**
     *
     * @return
     */
    public static Map<Integer, Integer> getSubjectMap() {
        Map<Integer, Integer> mapSubject = new HashMap<>();
        mapSubject.put(SubjectType.Yingyu.getCode(), 1);
        mapSubject.put(SubjectType.ShuXue.getCode(), 2);
        mapSubject.put(SubjectType.YuWen.getCode(), 3);
        mapSubject.put(SubjectType.WuLi.getCode(), 4);
        mapSubject.put(SubjectType.HuaXue.getCode(), 5);
        return mapSubject;
    }

    public static Map<Integer, Integer> getSubjectOfficialToCrm() {
        Map<Integer, Integer> mapSubject = new HashMap<>();
        mapSubject.put(1, SubjectType.Yingyu.getCode());
        mapSubject.put(2, SubjectType.ShuXue.getCode());
        mapSubject.put(3, SubjectType.YuWen.getCode());
        mapSubject.put(4, SubjectType.WuLi.getCode());
        mapSubject.put(5, SubjectType.HuaXue.getCode());
        return mapSubject;
    }
}
